package com.balabala.gym_user.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Author:zl
 * Date:2023/5/9 18:29
 */
@Data
@TableName("tb_user_points")
public class UserPoints implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "用户id")
    private Long userId;
    @ApiModelProperty(value = "获得或者减少的积分")
    private Integer earnPoints;
    @ApiModelProperty(value = "0:加积分 1:减积分")
    private Integer type;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "创建时间")
    private Date creatTime;
}
